package com.ticket.sass.admin.dto.input.pricescheme;

import com.ticket.sass.admin.validator.InEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author ywb
 * @date 2024-03-20 16:28
 */
@Data
@ApiModel("会员价输入")
public class MemberPriceInput {
    @NotNull(message = "会员级别ID不能为空")
    @ApiModelProperty(value = "会员级别ID")
    private Long memberLevelId;
    
    @NotNull(message = "折扣类型不能为空")
    @InEnum(intValues = {1, 2, 3})
    @ApiModelProperty(value = "折扣类型：1 立减，2 折扣，3 固定")
    private Short type;
    
    @NotNull(message = "折扣值不能为空")
    @ApiModelProperty(value = "折扣值")
    private BigDecimal value;
    
    @NotNull(message = "首单启用不能为空")
    @ApiModelProperty(value = "首单启用")
    private Boolean firstEnable;
    
    public MemberPriceInput() {
    }
}
